package com.agou.app.admin.dbconfig.bean;

import java.io.IOException;
import java.lang.reflect.Field;
import java.sql.ResultSet;
import java.sql.SQLException;

import com.agou.core.ss.SSException;
import com.agou.ssh.core.base.BaseTableBean;

/**
 * 管理员-用户信息
 * @author agou
 *
 */
public class TSProjectAttr extends BaseTableBean{

	private static final long serialVersionUID = -8176099881840603005L;
	
	private long attrId;// ATTR_ID
	private long projectId;// PROJECT_ID
	private String attrKey;// ATTR_KEY
	private String attrValue;// ATTR_VALUE
	private String attrDesc;// ATTR_DESC
	
	

	public long getAttrId() {
		return attrId;
	}

	public void setAttrId(long attrId) {
		this.attrId = attrId;
	}

	public long getProjectId() {
		return projectId;
	}

	public void setProjectId(long projectId) {
		this.projectId = projectId;
	}

	public String getAttrKey() {
		return attrKey;
	}

	public void setAttrKey(String attrKey) {
		this.attrKey = attrKey;
	}

	public String getAttrValue() {
		return attrValue;
	}

	public void setAttrValue(String attrValue) {
		this.attrValue = attrValue;
	}

	public String getAttrDesc() {
		return attrDesc;
	}

	public void setAttrDesc(String attrDesc) {
		this.attrDesc = attrDesc;
	}

	public String toString(){
		StringBuilder sbStr = new StringBuilder();
		Field[] fields=this.getClass().getDeclaredFields(); 
		for (Field field : fields) {
			try {
				sbStr.append(field.getName() + " = " + (String)field.get(this));
			} catch (Exception e) {
				sbStr.append(field.getName() + " = " + e.getMessage());
			} 
		}
		return sbStr.toString();
	}

	public void fill(ResultSet rs) throws SSException, SQLException,
			IOException {

	}

}
